<?php

namespace app\index\model;

use think\Model;

class FlowBillModel extends Model
{
    protected $table = 'newzs_flow_bill';

    const ISTURN_ON  = 1;    //已提交
    const ISTURN_OFF = 0;    //待提交



    //审核 说明
    const AGREE = [
        1 => '同意',
        2 => '不同意',
        3 => '退回',
        4 => '加签',
        5 => '转签',
        6 => '退出审核',
    ];








    public function get_max_sericnum($comid){
        $d = substr(date('Ymd'),2);
        return $this->where(['comid'=>$comid])->where('sericnum', 'like', $d.'%')->max('sericnum');
    }


}

